<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<script type="text/javascript">
	function createDiv()
	{
		for (var i=0; i<20; i++)
		{
			var locate = document.createElement('div');
			locate.style.border = "1px solid black";
			locate.style.width ="20px";
			locate.style.height ="30px";
			document.body.appendChild(locate);
			//document.body.appendChild(denumire_var); pt adaugarea in corp a elementului creat cu document.createElement('tag')
			var breake = document.createElement('br');
			document.body.appendChild(breake);
			
		}
	}
</script>
</head>
<body onload="createDiv()">

</body>
</html>